package com.ztgf.shopping.mapper.shop;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.ztgf.shopping.models.bo.shop.ShopShoppingCartCmsBo;
import com.ztgf.shopping.models.dto.shop.ShopShoppingCartDTO;
import com.ztgf.shopping.models.vo.shop.ShopShoppingCartCmsVO;
import com.ztgf.shopping.models.vo.shop.ShopShoppingVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户购物车表映射
 *
 * @author zhanghualang
 * @Date 2020-05-27 14:05:12
 */
public interface ShopShoppingCartMapper extends BaseMapper<ShopShoppingCartDTO> {
    List<ShopShoppingVO> queryGroupByShopId(@Param("shopId") Long shopId); //对购物车进行分组

    List<ShopShoppingCartCmsVO> selectByPage(Page<ShopShoppingCartCmsVO> page, @Param("item") ShopShoppingCartCmsBo bo);
}
